package com.youdianstar.app.common.network.model

import java.lang.Exception


/**
 * File: ResState
 * Author: 82149 Create: 2021/9/18 14:48
 * Changes (from 2021/9/18)
 * --------------------------------------------------
 * description: 按结果类型进行封装
 * ---------------------------------------------------
 *
 */
sealed class ResState <out T : Any>{
    data class Success<out T : Any>(val data: T) : ResState<T>()

    data class Error(val exception: Exception) : ResState<Nothing>()
}
